POV-Ray : Newsgroups : povray.beta-test : Prism bug? : Prism bug? Server Time
30 Jul 2024 20:29:39 EDT (-0400)
  Prism bug?  
From: tcdev
Date: 2 Oct 2001 13:07:54
Message: <3bb9f46a$1@news.povray.org>
Hi,
    I don't know whether this has been addressed but here goes. Using the
prism object I keep getting the parser error "Too few points in prism". This
happens either after inserting a prism object from the Insert menu or when I
edit one by hand.

Here is the insert menu code:
prism {
  linear_sweep // or conic_sweep for tapering to a point
  cubic_spline // linear_spline | quadratic_spline | cubic_spline
  -0.5,        // height 1
   0.5,        // height 2
  10,          // number of points
  // the <u,v> points
  < 0.2, -1.0>, < 0.2,  0.2>, < 1.0, -0.2>, < 1.0,  0.2>, < 0.2,  1.0>,
  <-0.2,  1.0>, <-1.0,  0.2>, <-1.0, -0.2>, <-0.2,  0.2>, <-0.2, -1.0>
  // [open]
  // [sturm]
}

and my own code:
prism{
 linear_sweep
 cubic_spline
 -1,1,7,
 <0,0>,<0,2>,<1,2>,<2,2>,<2,1>,<2,0>,<0,0>
}
using Win95b


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.